#ifndef _POINT_H_
#define _POINT_H_

#define MAX_X 79
#define MAX_Y 24
#define MIN_X 0
#define MIN_Y 0

#include <iostream>
using namespace std;

void gotoxy(int, int); // prototype

class Point
{
	int m_x, m_y;
	int dir_x, dir_y;
	char m_symb;
	bool flag;

public:
	
	Point(){ //constructor
		m_symb = '*';
		dir_x = dir_y = m_x = m_y = 0;
        flag = false;
	}; 
	
	void setPos(int x, int y);

	void getPos(int &x, int&y);

	void setSymbol(char c);

	void draw(char c);

	void move();

	bool isEqual(Point p);
};

#endif

